.calendar {
  width: 80%;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.calendarHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background-color: #e6f7ff;
  padding: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
}

.breadcrumb span {
  margin-right: 5px;
}

.calendarHeader nav {
  display: flex;
  gap: 10px;
}

.calendarHeader nav button {
  background: none;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

.calendarHeader nav button.active {
  background-color: #1890ff;
  color: white;
  border-radius: 5px;
}

.calendarMonthYearDisplay {
  font-size: 18px;
  font-weight: bold;
  margin: 0 20px;
}

.calendarMonthYearSelector {
  display: flex;
  align-items: center;
}

.calendarMonthYearSelector select {
  margin: 0 5px;
}

.calendarNavBtn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.calendarTable {
  width: 100%;
  border-collapse: collapse;
}

.calendarTable th,
.calendarTable td {
  border: 1px solid silver;
  padding: 30px;
  text-align: center;
  color: black;
  background-color: white;
}

.calendarNav {
  background-color: white;
}

.navButton {
  padding: 5px 10px;
  margin-right: 5px;
  border: none;
  background-color: #f0f0f0;
  cursor: pointer;
}

.navButton.active {
  background-color: blue;
  color: white;
}

/* Modal Overlay */
.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Modal Content */
.modalContent {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 300px; /* 根据需要调整宽度 */
  padding: 20px;
}

/* Modal Header */
.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modalHeader h2 {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}

.modalClose {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* Modal Body */
.modalBody {
  margin-bottom: 20px;
}

.modalBody div {
  margin-bottom: 15px;
}

.modalBody label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

.modalBody input,
.modalBody textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

/* Event Type Selector */
.eventTypeSelector {
  display: flex;
}

.eventType {
  width: 20px;
  height: 20px;
  margin-right: 5px;
  border-radius: 2px;
  cursor: pointer;
}

.eventTypeOrange {
  background-color: #FFA500;
}

.eventTypeRed {
  background-color: #FF0000;
}

.eventTypeCyan {
  background-color: #00FFFF;
}

.eventTypeGreen {
  background-color: #008000;
}

.eventTypeSelected {
  border: 2px solid #000;
}

/* Modal Footer */
.modalFooter {
  text-align: right;
}

.modalAddBtn {
  background-color: #1890ff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.modalAddBtn:hover {
  background-color: #40a9ff;
}

.eventDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: red;
  margin-top: 4px;
  cursor: pointer;
}

.eventDetailModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  border-radius: 8px;
}

.modalOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.eventList {
  margin-top: 20px;
}

.eventItem {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.eventDot {
  width: 8px;
  height: 8px;
  background-color: red;
  border-radius: 50%;
  cursor: pointer;
  margin-top: 5px;
}